package com.wz.project.sap.POST_TMDATA_SERIALAREA.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.wz.project.sap.POST_TMDATA_SERIALAREA.mapper.YppRfcPostTmdataSerialareaMapper;
import com.wz.project.sap.POST_TMDATA_SERIALAREA.domain.YppRfcPostTmdataSerialarea;
import com.wz.project.sap.POST_TMDATA_SERIALAREA.service.IYppRfcPostTmdataSerialareaService;
import com.wz.common.utils.text.Convert;

/**
 * 生产订单入库SERIALAREAService业务层处理
 * 
 * @author wz
 * @date 2022-09-20
 */
@Service
public class YppRfcPostTmdataSerialareaServiceImpl implements IYppRfcPostTmdataSerialareaService 
{
    @Autowired
    private YppRfcPostTmdataSerialareaMapper yppRfcPostTmdataSerialareaMapper;

    /**
     * 查询生产订单入库SERIALAREA
     * 
     * @param MANDT 生产订单入库SERIALAREAID
     * @return 生产订单入库SERIALAREA
     */
    @Override
    public YppRfcPostTmdataSerialarea selectYppRfcPostTmdataSerialareaById(String MANDT)
    {
        return yppRfcPostTmdataSerialareaMapper.selectYppRfcPostTmdataSerialareaById(MANDT);
    }

    /**
     * 查询生产订单入库SERIALAREA列表
     * 
     * @param yppRfcPostTmdataSerialarea 生产订单入库SERIALAREA
     * @return 生产订单入库SERIALAREA
     */
    @Override
    public List<YppRfcPostTmdataSerialarea> selectYppRfcPostTmdataSerialareaList(YppRfcPostTmdataSerialarea yppRfcPostTmdataSerialarea)
    {
        return yppRfcPostTmdataSerialareaMapper.selectYppRfcPostTmdataSerialareaList(yppRfcPostTmdataSerialarea);
    }

    /**
     * 新增生产订单入库SERIALAREA
     * 
     * @param yppRfcPostTmdataSerialarea 生产订单入库SERIALAREA
     * @return 结果
     */
    @Override
    public int insertYppRfcPostTmdataSerialarea(YppRfcPostTmdataSerialarea yppRfcPostTmdataSerialarea)
    {
        return yppRfcPostTmdataSerialareaMapper.insertYppRfcPostTmdataSerialarea(yppRfcPostTmdataSerialarea);
    }

    /**
     * 修改生产订单入库SERIALAREA
     * 
     * @param yppRfcPostTmdataSerialarea 生产订单入库SERIALAREA
     * @return 结果
     */
    @Override
    public int updateYppRfcPostTmdataSerialarea(YppRfcPostTmdataSerialarea yppRfcPostTmdataSerialarea)
    {
        return yppRfcPostTmdataSerialareaMapper.updateYppRfcPostTmdataSerialarea(yppRfcPostTmdataSerialarea);
    }

    /**
     * 删除生产订单入库SERIALAREA对象
     * 
     * @param ids 需要删除的数据ID
     * @return 结果
     */
    @Override
    public int deleteYppRfcPostTmdataSerialareaByIds(String ids)
    {
        return yppRfcPostTmdataSerialareaMapper.deleteYppRfcPostTmdataSerialareaByIds(Convert.toStrArray(ids));
    }

    /**
     * 删除生产订单入库SERIALAREA信息
     * 
     * @param MANDT 生产订单入库SERIALAREAID
     * @return 结果
     */
    @Override
    public int deleteYppRfcPostTmdataSerialareaById(String MANDT)
    {
        return yppRfcPostTmdataSerialareaMapper.deleteYppRfcPostTmdataSerialareaById(MANDT);
    }
}
